<div style="padding:12px">
	<div class="log-qrcode-cont" style="padding:5px 20px;height:240px;width:200px;margin:28px auto">
		<div class="title" style="font-size:18px;margin-bottom:0px">微信授权登录</div>
		<div class="wap-qrcode-image" id="wxauth_code" style="width:160px;margin:0 auto"></div>
		<div class="text" style="margin-top:5px"><i class="icon icon-saoyisao1"></i> 打开微信，扫一扫登录</div>
	</div>
</div>
<script>
var url=scope.tool.custom_url('core/member.login/wxauth_check/session_id='+scope.modaldata.session_id,true);
scope.tool.qr(url,'wxauth_code');
scope.modaldata.wxauth=1;
scope.modaldata.width='300px';
scope.tool.wechat_login(function(res){
				if(res.to_uid==scope.modaldata.session_id && res.message && res.message.openid){
					scope.modaldata.item.openid=res.message.openid;
					scope.post(scope.modaldata.item,'core/member.login/wechat_login/');
				}
});

</script>